package com.shun.gateway.msg;

import lombok.Getter;

/**
 * 通用异常code
 * @author clever
 * @since 2021-09-22
 */
public enum GatewayErrorCode {

    //通讯成功
    SUC("0","成功"),

    //通讯失败，具体的原因查看msg
    NO_ERROR("1","通讯失败"),

    //通讯失败，具体的原因查看msg
    NO_CONTENT_TYPE("10001","内容类型不正确！"),

    //通讯失败，秘钥失败原因查看msg
    RSA_ERROR("2","通讯失败");

    @Getter
    private String code;

    @Getter
    private String msg;

    GatewayErrorCode(String code,String msg){
        this.code = code;
        this.msg = msg;
    }
}
